/*
 * Copyright © 2019-2020  Whale Cloud, Inc. All Rights Reserved.
 *
 * Notice: Whale Cloud Inc copyrights this specification.
 * No part of this specification may be reproduced in any form or means,
 * without the prior written consent of Whale Cloud Inc.
 *
 */
package com.wteam.modules.system.domain.dto;

import lombok.Data;
import java.io.Serializable;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Transient;

/**
 * 学分记录 DTO类.
 *
 * @author herry_wong
 * @since 2020-12-29
 */
@Data
public class CreditRecordDTO implements Serializable {
    /** 防止精度丢失 */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 学生id */
    @ApiModelProperty("学生id")
    private Long studentId;
    private StudentDTO studentDTO;

    /** 学分类型 */
    @ApiModelProperty("学分类型")
    private Long typeId;
    private CreditTypeDTO creditTypeDTO;

    /** 学分 */
    @ApiModelProperty("学分")
    private Double credit;

    /** 课程id */
    @ApiModelProperty("课程id")
    private Long courseId;

    private CourseDTO courseDTO;

    /** 学科成绩 */
    @ApiModelProperty("学科成绩")
    private Double score;

    //有错误的时候不为空，返回错误信息
    private String msg;

    private Double dailyScore;

    private Double examScore;
}